import instance from '@/utils/request'

export function sysLoginRequest(data) {
  return instance({
    url: '/api/sys/login',
    method: 'post',
    data
  })
}

export function sysProfileRequest() {
  return instance({
    url: '/api/sys/profile',
    method: 'get'
    // params: { token }
  })
}

export function userUpdatapassRequest(data) {
  return instance({
    url: '/api/sys/user/updatePass',
    method: 'put',
    data
  })
}
export function sysLogoutRequest() {
  return instance({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
